@echo off
@REM ----------------------------------------------------------------------------------
@REM StartHere.bat
@REM 
@REM This Batch file Builds the Dependency Checker tool for LitwareHR Sample Application
@REM
@REM ----------------------------------------------------------------------------------

set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v3.5
set solutionDir="."
set buildType=Release
set returnErrorCode=true
set verbosity=quiet
set pause=true

@echo Building "LitwareHR Sample Application Dependency Checker"
call %msBuildDir%\msbuild "..\common\ConfigurationWizard\ConfigurationWizard.sln" /t:Rebuild /p:Configuration=%buildType% /verbosity:%verbosity%
@if errorlevel 1 goto error
@xcopy ..\common\ConfigurationWizard\ConfigurationWizard\bin\release\*.* ..\bin\ > nul /y /e
@echo Build Complete
start ..\bin\ConfigurationWizard.exe

@goto :exit

:error
@echo An Error Occured building the LitwareHR Sample Application Dependency Checker
@echo The Dependency checker requires the .net framework 2.0 to be installed.
@echo NOTE: You should also run the dependency checker from an Elevated Command Prompt.

:exit
@echo Finished